Add --disable-docs option to configure
authorDaniel Sabo <DanielSabo@gmail.com>
Thu, 7 Feb 2013 19:24:12 +0000 (11:24 -0800)
committerDaniel Sabo <DanielSabo@gmail.com>
Fri, 29 Mar 2013 23:15:17 +0000 (16:15 -0700)
Makefile.am
configure.ac

index 19df3268c425dc41321d238b2b2266de5b96ce15..700841450e1eb06b36ba4872e09e979a4cc93b4c 100644 (file)
@@ -4,8 +4,11 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 SUBDIRS = \
        babl            \
        extensions      \
-       tests           \
-       docs
+       tests
+
+if ENABLE_DOCS
+SUBDIRS+= docs
+endif
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = babl.pc
index b0697abc8d79897f900d81085944a21b1978ba1b..ce5a8723c1e371b20ba99d2b368fb31fce136907 100644 (file)
@@ -172,6 +172,13 @@ AM_CONDITIONAL(HAVE_RSVG, test "x$RSVG" != "xno")
 AC_PATH_PROG(W3M, w3m, no)
 AM_CONDITIONAL(HAVE_W3M, test "x$W3M" != "xno")
 
+dnl disable docs generation.
+AC_ARG_ENABLE([docs],
+              [  --disable-docs          disable docs generation (default=no)],,
+              enable_docs="yes")
+
+AM_CONDITIONAL(ENABLE_DOCS, test "x$enable_docs" = "xyes")
+
 ###########################
 # Check target architecture
 ###########################